//
//  JWCSectionGroup.m
//  TableView封装
//
//  Created by Ju on 14-8-20.
//  Copyright (c) 2014年 dono. All rights reserved.
//

#import "JWCSection.h"
#import "JWCBaseCellItem.h"

@implementation JWCSection

- (void)setItems:(NSArray *)items
{
    _items = items;
    if (!_itemsHeight) {
        _itemsHeight = [NSMutableArray arrayWithCapacity:items.count];
    }else{
        [_itemsHeight removeAllObjects];
    }
    for (JWCBaseCellItem *data in _items) {
        [_itemsHeight addObject:[NSNumber numberWithFloat:data.height]];
    }
}

@end
